package zom.zenjava.zendeploy.gui.jfx;

import javafx.concurrent.Service;
import javafx.concurrent.Task;
import zom.zenjava.zendeploy.ZenDeployManager;
import zom.zenjava.zendeploy.model.ApplicationProfile;

public class LoadCurrentApplicationProfileService extends Service<ApplicationProfile>
{
    protected Task<ApplicationProfile> createTask()
    {
        return new Task<ApplicationProfile>()
        {
            protected ApplicationProfile call() throws Exception
            {
                Thread.sleep(3000);
                ZenDeployManager zenDeployManager = ZenDeployManager.getInstance();
                return zenDeployManager.getInstalledApplicationProfile();
            }
        };
    }
}
